<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: csnf
  Date: 2024/12/26
  Time: 09:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            margin: 0;
            padding: 20px;
        }
        a {
            color: #007bff;
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:hover {
            background-color: #f1f1f1;
        }
    </style>
</head>
<body>
    <a href="getAllClazzToList">返回</a><br>
      班级编号:${clazz.cId}<br>
      班级名称:${clazz.cName}<br>
      学生列表:
      <table border="1">
          <tr>
              <th>编号</th>
              <th>姓名</th>
              <th>生日</th>
              <th>性别</th>
          </tr>
          <c:forEach items="${clazz.students}" var="stu">
              <tr>
                  <td>${stu.sId}</td>
                  <td>${stu.sName}</td>
                  <td>${stu.birth}</td>
                  <td>${stu.gender}</td>
              </tr>
          </c:forEach>
      </table>
</body>
</html>
